﻿<%@ Page Language="C#" MasterPageFile="/Online/Client.master" AutoEventWireup="true"
    CodeFile="Tintuc.aspx.cs" Inherits="Tintuc" Title="Trang tin tức" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link rel="Stylesheet" type="text/css" href="/Online/CSS/CSS.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div>
        <div style="width: 822px; height: 20px; background-image: url(/Online/Img/td.png);
            background-repeat: no-repeat; background-color: #DDEDFA;">
            <span style="color: White; font-weight: bold; font-size: 12px; margin-left: 10px;">TIN
                TỨC</span>
        </div>
        <div style="border: 1px solid #c6c6c6;">
            <asp:Panel ID="pnTin" runat="server">
                <div style="margin-top: 10px; width: 822px; -webkit-border-radius: 0px 0px 5px 5px;">
                    <asp:DataList ID="dltt" runat="server" Width="830px">
                        <ItemTemplate>
                            <div style="width: 822px; border: 1px solid #c6c6c6; border-top-style: hidden; border-left-style: hidden;
                                border-right-style: hidden; height: 130px;">
                                <div style="width: 130px; height: 130px; float: left;">
                                    <a href='<%#"/Online/Tintuc.aspx?m="+Eval("Matin") %>'>
                                        <asp:Image ID="Hinhanh" runat="server" Width="130px" Height="120px" ToolTip='<%#Eval("Tieude") %>'
                                            ImageUrl='<%# Eval("Anhdaidien") %>' />
                                    </a>
                                </div>
                                <div style="margin: 10px; width: 672px; float: left; height: 140px;">
                                    <div style="width: 672px; float: left; height: 30px;">
                                        <div>
                                            <asp:HyperLink ID="link1" CssClass="white" runat="server" Text='<%#Eval("Tieude") %>'
                                                NavigateUrl='<%#"/Online/Tintuc.aspx?m="+Eval("Matin") %>'></asp:HyperLink></div>
                                        <div>
                                            <i>Đăng ngày :&nbsp;<asp:Label ID="Label1" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Ngaydang", "{0:dd/MM/yyyy hh:mm:ss tt}")%> ' />&nbsp;&nbsp;</i>
                                            <i>Đăng bởi :&nbsp;<asp:Label ID="Label2" runat="server" Text='<%#Eval("Taikhoan") %>' /></i>
                                        </div>
                                    </div>
                                    <div style="width: 672px; font-size: 16px; font-style: italic; float: left; height: 100px;
                                        margin-top: 20px;">
                                        <asp:Label ID="tomtat" runat="server" Text='<%# Eval("Tomtat") %>' />
                                    </div>
                                </div>
                            </div>
                        </ItemTemplate>
                    </asp:DataList>
                </div>
                <asp:Label ID="trang" runat="server"></asp:Label>
            </asp:Panel>
            <asp:Panel ID="htTin" runat="server" CssClass="ht">
                <div class="tieudetin">
                    <asp:Label ID="tdtin" runat="server"></asp:Label>
                </div>
                <div class="tomtat">
                    <asp:Label ID="tomtat" runat="server"></asp:Label>
                </div>
                <div class="noidung">
                    <asp:Label ID="noidung" runat="server"></asp:Label>
                </div>
            </asp:Panel>
            <asp:Panel ID="tinlq" runat="server">
                <div style="margin-bottom: 10px;">
                    <hr style="color: #c6c6c6;" />
                    <span style="color: Purple; margin-left: 10px; font-weight: bold; font-family: Palatino Linotype;">
                        BÀI GẦN ĐÂY:</span><br />
                    <asp:Repeater ID="rttin" runat="server">
                        <ItemTemplate>
                            <div style="margin: 5px 10px 5px 10px;">
                                <a href='<%#"/Online/Tintuc.aspx?m="+Eval("Matin") %>' class="tinlq">
                                    <img src="/Online/Img/arrow2.jpg" alt="arrow" />
                                    <asp:Label ID="tin" runat="server" Text='<%#Eval("Tieude") %>'></asp:Label>&nbsp;&nbsp;&nbsp;
                                    <asp:Label ID="ngay" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Ngaydang", "{0:dd/MM/yyyy hh:mm:ss tt}")%> '></asp:Label>
                                </a>
                            </div>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>
            </asp:Panel>
        </div>
    </div>
</asp:Content>
